<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/**
			 * @param {number} n
			 * @return {number}
			 */
			var fib = function(n) {
				if (n <= 1) {
					return n;
				}
				return fib(n - 1) + fib(n - 2);
			};
			console.log(fib(4));
		</script>
	</body>
</html>
